package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.content.dal.entity.MessageDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageDOMapper extends BaseMapper<MessageDO> {
    Integer count(@Param("keyword") String keyword, @Param("status") Integer status, @Param("isOpening") Integer isOpened);
    List<MessageDO> pageList(@Param("keyword") String keyword,
                                    @Param("status") Integer status,
                                    @Param("isOpening") Integer isOpened,
                                    @Param("page") PageParamRequest request);
    MessageDO selectByMemberId(@Param("memberId") Long memberId);
}